# Change Permissions on Recent Documents Job

Automatically disables permission inheritance on recently accessed documents and applies configured permissions.

Configuration class: ChangePermissionsOnRecentDocumentsJobCfg

Schedule base: IntervalScheduleCfg (runs at regular intervals)

# Purpose

This job helps secure documents that have been recently accessed by:

  • Identifying recently modified or accessed documents
  • Breaking permission inheritance on those documents
  • Applying appropriate permissions based on matter or document type

Useful for:

  • Securing sensitive documents after they've been accessed
  • Enforcing document-level permission policies
  • Managing compliance around recent activity

# Configuration

# Disabled

  • Type: bool?
  • Default:
  • Required: No
  • Description: Disable this job without removing configuration

# CurrentState

  • Type: ChangePermissionsOnRecentDocumentsJobState
  • Default:
  • Required: No
  • Description: System-managed — stores current job state

# Scheduling Properties

# Interval

  • Type: TimeSpan?
  • Default:
  • Description: How often to run. Example: "00:30:00" for every 30 minutes.

# Example Configuration

{
  "Disabled": false,
  "Interval": "01:00:00",
  "CurrentState": {}
}

# How It Works

  1. Job runs at intervals defined by the schedule
  2. Scans all documents across configured site collections
  3. Identifies documents modified within the lookback period
  4. For each recent document:
    • Disables permission inheritance from parent library/folder
    • Applies the configured permission set (if defined)
  5. Tracks state to avoid re-processing the same documents

# Notes

  • Interval timing: Set to 00:30:00 for hourly checks (good for active sites), 04:00:00 for less frequent updates
  • Performance: This job can be resource-intensive on large deployments. Test interval settings in staging first
  • Permission application: Respects existing permissions on documents that already have custom permissions
Last Updated: 4/15/2026, 8:56:27 AM